package com.deram.ctin.serv.system.api;

import com.deram.ctin.serv.system.entity.SystemSearch;
import com.deram.ctin.serv.system.filter.SystemSearchFilter;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * Created by xhw on 2017/09/13.
 */

@FeignClient("serv-system")
@RequestMapping("/systemSearchApi")
public interface SystemSearchApi {

    @PostMapping("/find")
    SystemSearch find(@RequestParam("id") Long id);

    @PostMapping("/list")
    List<SystemSearch> list(@RequestBody SystemSearchFilter filter);
}
